#!/bin/bash

# 脚本名称：build_and_clean.sh
# 描述：运行make来编译项目，然后运行make clean来清理

# 定义一个函数来运行make
run_make() {
    echo "Running make..."
    make || { echo "Make failed"; exit 1; }
    echo "Make completed successfully."
}

# 定义一个函数来运行make clean
run_make_clean() {
    echo "Running make clean..."
    make clean || { echo "Make clean failed"; exit 1; }
    echo "Make clean completed successfully."
}

# 运行make
#run_make

# 运行make clean
run_make_clean
